function updateStatus(orderId){
    $.ajax({
        type: 'POST',
        url: '/admin/order/modifyOrderStatus.html?orderId='+orderId,
        async: true,
        success: function(data){
            if (data.code != 1){
                layer.msg('操作失败!',{icon : 5,time : 1000});
                console.log(data.msg);
                return;
            }
            layer.msg('操作成功!',{icon : 6,time : 1000},function(){
                window.location.reload();
            })
        },
        error: function(XMLHttpRequest, textStatus, errorThrown){
            //alert(XMLHttpRequest.status);
            window.location.reload();
        }
    });
}